<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/2/13 0013
 * Time: 0:03
 */
header("Content-type:text/html;charset=utf-8");
session_start();
if(isset($_SESSION['username']))
{
    if($_SESSION['userflag'] == 1)
        echo "欢迎管理员".$_SESSION['username']."登陆";

    if($_SESSION['userflag'] == 0)
        echo "欢迎用户".$_SESSION['username']."登陆";

}
else
{
    echo "您没有权限访问此页面";
}
?>
<a href="quit.php">退出</a>
</body>
</html>
